package thread;

import java.util.Scanner;

public class SleepDemo02 {
    public static void main(String[] args) {
        System.out.println("程序启动了");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        for (int i = 0; i < num;) {
            --num;
            System.out.println(num);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("时间到");
    }
}
